//
//  YCDatePickerViewViewController.m
//  DemoPickerView
//
//  Created by tangkexiong on 16/3/9.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import "YCDatePickerViewViewController.h"

#import "YCDatePickerView.h"

@interface YCDatePickerViewViewController ()<YCDatePickerViewDelegate>

@end

@implementation YCDatePickerViewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)chooseDateBtnClicked:(id)sender {
    YCDatePickerView *pickerView = [YCDatePickerView instanceWithDelegate:self];
    
    [pickerView show];
}

#pragma mark - YCDatePickerViewDelegate

- (void)datePickerViewWillShow:(YCDatePickerView *)pickerView {
    pickerView.datePickerView.minimumDate = [NSDate date];
}

@end
